package lgy.kunpeng.homework;

import java.util.Scanner;

public class op02 {
    public static void main(String[] args) {
        Scanner cin = new Scanner(System.in);
        int numOfClass = 3;
        for(int i=0;i<numOfClass;i++){
            System.out.println("请输入第"+(i+1)+"个班的成绩");
            float sum=0;
            for(int j=0;j<4;j++){
                System.out.println("第"+(j+1)+"个学员的成绩：");
                sum+= cin.nextInt();
            }
            System.out.println("第"+(i+1)+"个班的平均成绩是:"+sum/4);
        }
    }
}
